package com.mdlib.helper.api.service;

import com.mdlib.helper.model.BaseResult;

import java.util.ArrayList;
import java.util.List;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import rx.Observable;

/**
 * Created by librabin on 16/12/9.
 */

public interface SpecialApi {


    /**
     * 上传图片
     *
     * @param prarms
     * @param ext
     * @param type
     * @param sessionId
     * @return
     */
    @Multipart
    @POST("Upload/up")
    Observable<BaseResult<ArrayList<String>>> uploadImage(@Part List<MultipartBody.Part> prarms,
                                                           @Part("ext") RequestBody ext,
                                                           @Part("type") RequestBody type,
                                                           @Part("session_id") RequestBody sessionId);

}
